package com.leather.quan.config;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MQConfig {

    public final static String QUAN_QUENE = "quanquene";
    public final static String COMMENT_QUEUE = "commentquene";
    public final static String QUAN_COMMENTS = "quancommentquene";

    @Bean
    public Queue getQuene(){
        return new Queue(QUAN_QUENE,true);
    }

    @Bean
    public Queue getCommentQuene(){
        return new Queue(COMMENT_QUEUE,true);
    }

    @Bean
    public Queue getQuanCommentQuene(){
        return new Queue(QUAN_COMMENTS,true);
    }




}
